package exam;

/**
 * Tests the answer to the second array question.
 * The text of the question is as follows:
 * "Write a method that returns an array with length 8 containing the powers of two, starting at 
 *  2 ^ 0 and ending with 2 ^ 7."
 * 
 * @author Branden Ogata
 *
 */

public class TestArrayA01 extends Tester
{
  public static void main(String[] args)
  {
    final double points = getPoints(args);
    
    ArrayA01 question = new ArrayA01();
    System.out.println(test(Category.EQUALS, "makePowersArray():", 
                            java.util.Arrays.toString(new int[] {1, 2, 4, 8, 16, 32, 64, 128}), 
                            java.util.Arrays.toString(question.makePowersArray()), 
                            percentageToPoints(1, points)));
    
    System.out.format("[%.2f/%.2f]%n", getTotalPoints(), points);
  }
}
